class ConfigModel {
  String? rvsta;
  String? ver;
  List<Items>? items;
  RiskControlInfoConfig? riskControlInfoConfig;

  ConfigModel({this.rvsta, this.ver, this.items, this.riskControlInfoConfig});

  ConfigModel.fromJson(Map<String, dynamic> json) {
    rvsta = json['rvsta'];
    ver = json['ver'];
    if (json['items'] != null) {
      items = <Items>[];
      json['items'].forEach((v) {
        items?.add(Items.fromJson(v));
      });
    }
    riskControlInfoConfig = json['riskControlInfoConfig'] != null
        ? RiskControlInfoConfig.fromJson(json['riskControlInfoConfig'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['rvsta'] = this.rvsta;
    data['ver'] = this.ver;
    if (this.items != null) {
      data['items'] = this.items?.map((v) => v.toJson()).toList();
    }
    if (this.riskControlInfoConfig != null) {
      data['riskControlInfoConfig'] = this.riskControlInfoConfig?.toJson();
    }
    return data;
  }
}

class Items {
  dynamic? data;
  String? name;

  Items({this.data, this.name});

  Items.fromJson(Map<String, dynamic> json) {
    data = json['data'];
    name = json['name'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['data'] = this.data;
    data['name'] = this.name;
    return data;
  }
}

class RiskControlInfoConfig {
  int? kInterval;
  String? kFactor;
  String? kFactorNum;

  RiskControlInfoConfig({this.kInterval, this.kFactor, this.kFactorNum});

  RiskControlInfoConfig.fromJson(Map<String, dynamic> json) {
    kInterval = json['k_interval'];
    kFactor = json['k_factor'];
    kFactorNum = json['k_factor_num'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['k_interval'] = this.kInterval;
    data['k_factor'] = this.kFactor;
    data['k_factor_num'] = this.kFactorNum;
    return data;
  }
}
